package com.fwx.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName emp
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "员工实体类")
public class Emp implements Serializable {
    /**
     * 员工编号
     */
    @TableId
    @ApiModelProperty(value = "员工编号")
    private Integer empno;

    /**
     * 员工头像
     */
    @ApiModelProperty(value = "员工头像")
    private String head;

    /**
     * 员工姓名
     */
    @ApiModelProperty(value = "员工姓名")
    private String name;

    /**
     * 员工职位
     */
    @ApiModelProperty(value = "员工职位")
    private String job;

    /**
     * 入职时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "入职时间")
    private Date hiredate;

    /**
     * 员工薪水
     */
    @ApiModelProperty(value = "员工薪水")
    private Double sal;

    /**
     * 员工提成
     */
    @ApiModelProperty(value = "员工提成")
    private Double comm;

    /**
     * 所属部门编号
     */
    @ApiModelProperty(value = "所属部门编号")
    private Integer deptno;

    /**
     * 部门表
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "部门实体类对象")
    private Dept dept;

    private static final long serialVersionUID = 1L;
}